﻿using System;

namespace Ue.CQRS
{
    [AttributeUsage(AttributeTargets.Class,AllowMultiple=false)]
    public class EventSourceAttribute : Attribute,IAttribute
    {
        public EventSourceAttribute()
            : this(string.Empty) { }

        public EventSourceAttribute(string name)
        {
            this.Name = name;
        }

        public string Name { get; set; }
    }
}
